﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Services;
using Volo.Abp.Auditing;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Uow;

namespace Ebusiness_Application.Service
{
    /// <summary>
    /// 审计日志应用模块测试 
    /// </summary>
    //[Audited] //记录日志
    //[DisableAuditing]  //不记录日志
    [Dependency(ServiceLifetime.Transient)]
    public class AuditLogTestService :  IRemoteService , IAuditingEnabled //记录日志
    {
        public AuditLogTestService()
        {

        }


        public void Test()
        {
            //var x = UnitOfWorkManager.Current;
            Console.WriteLine("测试");
        }

        //开启审计日志记录
        [Audited]
        public void Test2()
        {
            //var x = UnitOfWorkManager.Current;
            Console.WriteLine("测试");
        }
    }
}
